package com.codedef.cidaren.dao;

import com.codedef.cidaren.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 用户系统
 * 
 * @author sun
 * @email 1138794994@qq.com
 * @date 2020-08-22 01:03:59
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    @Update("UPDATE cdr_user SET tax=tax+#{num} WHERE id=#{userId}")
    int addTax(Integer userId, int num);

	
}
